// void, Obj me, Obj tgt

Unit this;
Obj u;
str class;
class = tgt.class;

this = me.AsUnit();
Sleep(rand(100)+10);
if (.IsValid) // leave parry mode at new command
 .SetParryMode(false);

u = .BestTargetInSquadSightExclusive(class);

while (.IsValidTarget(u)) 
{
	while(!.GotoAttack(u, 1500, true, 15000)) 
	{
		u = .BestTargetInSquadSightExclusive(class);
		if(!.IsValidTarget(u)) break;
	}

	if (.IsValidTarget(u))
		while (.Attack(u));

	u = .BestTargetInSquadSightExclusive(class);
}
